home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 June
/
PCWorld_2007-06_cd.bin
/
domacnost a kancelar
/
actual
/
atwsetup.exe
/
{app}
/
en.chm
/
features
/
align.php
< prev
next >
Wrap
PHP Script
|
2007-04-16
|
5KB
|
154 lines
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Align");
?>
<h1>Align</h1>
<p><i><b>Available in</b>:
<a href="http://www.actualtools.com/products/index.php#aim">Actual Window Manager</a>,
<a href="http://www.actualtools.com/products/index.php#awg">Actual Window Guard</a>,
<a href="http://www.actualtools.com/products/index.php#atb">Actual Title Buttons</a>,
<a href="http://www.actualtools.com/products/index.php#asm">Actual Window Menu</a>.
</i></p>
<p>As its name implies, the <i><b>Align</b> action</i> provides the automatic horizontal and vertical alignment of the
target window. There are nine predefined alignment modes to automatically position your window on the desktop:
</p>
<table align="center" width="80%" cellspacing="10" cellpadding="10">
<tr>
<td>top-left
<br/><img src="http://www.actualtools.com/images/AlignTopLeft.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Top-Left Aligning Mode"/>
</td>
<td>top-center
<br/><img src="http://www.actualtools.com/images/AlignTopCenter.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Top-Center Aligning Mode"/>
</td>
<td>top-right
<br/><img src="http://www.actualtools.com/images/AlignTopRight.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Top-Right Aligning Mode"/>
</td>
</tr>
<tr>
<td>middle-left
<br/><img src="http://www.actualtools.com/images/AlignMiddleLeft.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Middle-Left Aligning Mode"/>
</td>
<td>middle-center
<br/><img src="http://www.actualtools.com/images/AlignMiddleCenter.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Middle-Center Aligning Mode"/>
</td>
<td>middle-right
<br/><img src="http://www.actualtools.com/images/AlignMiddleRight.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Middle-Right Aligning Mode"/>
</td>
</tr>
<tr>
<td>bottom-left
<br/><img src="http://www.actualtools.com/images/AlignBottomLeft.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Bottom-Left Aligning Mode"/>
</td>
<td>bottom-center
<br/><img src="http://www.actualtools.com/images/AlignBottomCenter.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Bottom-Center Aligning Mode"/>
</td>
<td>bottom-right
<br/><img src="http://www.actualtools.com/images/AlignBottomRight.gif" border="0" width="128" height="128" align="middle" vspace="5" alt="Bottom-Right Aligning Mode"/>
</td>
</tr>
</table>
<p>You can also specify horizontal and vertical shift values to force the precise, incremental positioning of windows on
your desktop. For example, to position a window exactly 100 pixels over to the right from the left edge of the desktop
and 150 pixels up from the bottom edge of the desktop you should select "bottom-left" and specify a horizontal shift
value of 100 and a vertical shift value of 150. Alternatively you can define these values as a percentage of the
corresponding desktop size in either dimension. Both positive and negative shift values are allowed. (Note that a
numeric value <i>not</i> preceded by a value sign is understood to represent a <i>positive</i> shift and the "+" plus
sign may be omitted, while <i><b>a negative shift must always be preceded by the "-" minus sign</b></i>.) The following
tables show how the positive and negative value signs affect window positioning in the various alignment modes:
</p>
<p align="center">Horizontal shift
</p>
<table align="center" width="80%" border="2">
<tr>
<th>Value Sign
</th>
<td align="center" rowspan="2" colspan="1">+
</td>
<td align="center" rowspan="2" colspan="1">-
</td>
</tr>
<tr>
<th>Mode
</th>
</tr>
<tr>
<td align="center"><i>any</i>-Left
</td>
<td align="center">to the right
</td>
<td align="center">to the left
</td>
</tr>
<tr>
<td align="center"><i>any</i>-Center
</td>
<td align="center">to the right
</td>
<td align="center">to the left
</td>
</tr>
<tr>
<td align="center"><i>any</i>-Right
</td>
<td align="center">to the left
</td>
<td align="center">to the right
</td>
</tr>
</table>
<p align="center">Vertical shift
</p>
<table align="center" width="80%" border="2">
<tr>
<th>Value Sign
</th>
<td align="center" rowspan="2">+
</td>
<td align="center" rowspan="2">-
</td>
</tr>
<tr>
<th>Mode
</th>
</tr>
<tr>
<td align="center">Top-<i>any</i>
</td>
<td align="center">to the bottom
</td>
<td align="center">to the top
</td>
</tr>
<tr>
<td align="center">Middle-<i>any</i>
</td>
<td align="center">to the bottom
</td>
<td align="center">to the top
</td>
</tr>
<tr>
<td align="center">Bottom-<i>any</i>
</td>
<td align="center">to the top
</td>
<td align="center">to the bottom
</td>
</tr>
</table>
<p><i>Hint</i> To obtain pixel-precision positioning of a window select <b>top-left</b> (the origin) and
specify your shift values in pixels from there.
</p>
<p><i>Related actions:
<a href="resize.php">Resize</a>,
<a href="runmode.php">Change Run Mode</a>.
</i></p>
<p><i>Possible triggers:
<a href="titlebuttons.php#align">Title Buttons</a>,
<a href="windowmenu.php#align">Window Menu</a>,
<a href="startup.php">Startup</a>.
</i></p>
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");
?>